package br.unisinos.aidk.graph;

import java.util.Iterator;
import java.util.LinkedList;

public class Solution {

	private LinkedList<String> commands;
	
	
	public Solution(){
		commands = new LinkedList<String>();
	}
	
	public void addStep(String op){
		commands.add(op);
	}
	
	public Iterator<String> elements(){
		return commands.iterator();
	}
	
	public String toString(){
		return commands.toString();
	}

	public void remove(Object o) {
		if(commands.size()!=0) commands.remove(o);
	}
	
	public void remove() {
		if(commands.size()!=0) commands.removeLast();
	}
}
